import request from '@/utils/request'

export default{
    //分页查询讲师
    getTeacherList(current,limit,query){
        return request({
            url: `/eduservice/edu-teacher/pageteacherCondition/${current}/${limit}`,
            method: 'post',
            data: query
          })
    },
    //删除讲师
    deleteTeacher(id){
        return request({
            url: `/eduservice/edu-teacher/${id}`,
            method: 'delete',
            
          })
    },
    addTeacher(eduTeacher){
        return request({
            url: `/eduservice/edu-teacher/addteacher`,
            method: 'post',
            data: eduTeacher
        })
    },
    getTeacherIno(id){
        return request({
            url: `/eduservice/edu-teacher/getteacher/${id}`,
            method: 'get',
            
        })
    },
    updateTeacher(eduTeacher){
        return request({
            url: `/eduservice/edu-teacher/updateTeacher`,
            method: 'post',
            data: eduTeacher    
        })
    },
    getAllTeacher(){
        return request({
            url: `eduservice/edu-teacher/list`,
            method: 'get',
            
        })
    },


}


